package com.itheima.demo02interface;

import java.util.function.Function;

public class Demo05Function {
    public static void main(String[] args) {
        convert((String str) -> {
            return Integer.parseInt(str);
        });
    }

    public static void convert(Function<String, Integer> function){
        String str = "10";
        Integer num = function.apply(str);
        System.out.println("num = " + num);
    }
}
